var glob = require("glob");
var path = require("path");
var fs = require("fs");

var filepath = path.join(__dirname, "src", "exxxtension.ts");

// var filedata = fs.readFileSync(filepath, { encoding: "utf8" });

// console.log(filedata);

// const ma = /(import(.+)from[^\;]+\;)|(require\([^\;]+\;)/gi;
// console.log("ma", ma, filedata.match(ma));

// const matchs = filedata.match(ma);

// matchs.forEach((val) => {
//   const aa = val.replace(/\'/g, '"').split('"');
//   console.log(aa[1]);
// });

fs.stat(filepath, (err, stats) => {
  console.log(err, stats);
});
